#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet
# at http://www.illumos.org/license/CDDL.
#

#
# Copyright 2011, Richard Lowe
# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
#

include		$(SRC)/Makefile.master

MANSECT= 	3tecla

MANFILES= 	cpl_complete_word.3tecla	\
		ef_expand_file.3tecla		\
		gl_get_line.3tecla		\
		gl_io_mode.3tecla		\
		libtecla_version.3tecla		\
		pca_lookup_file.3tecla

MANLINKS=	cfc_file_start.3tecla		\
		cfc_literal_escapes.3tecla	\
		cfc_set_check_fn.3tecla		\
		cpl_add_completion.3tecla	\
		cpl_check_exe.3tecla		\
		cpl_file_completions.3tecla	\
		cpl_last_error.3tecla		\
		cpl_list_completions.3tecla	\
		cpl_recall_matches.3tecla	\
		cpl_record_error.3tecla		\
		del_CplFileConf.3tecla		\
		del_ExpandFile.3tecla		\
		del_GetLine.3tecla		\
		del_PathCache.3tecla		\
		del_PcaPathConf.3tecla		\
		del_WordCompletion.3tecla	\
		ef_last_error.3tecla		\
		ef_list_expansions.3tecla	\
		gl_abandon_line.3tecla		\
		gl_append_history.3tecla	\
		gl_automatic_history.3tecla	\
		gl_bind_keyseq.3tecla		\
		gl_catch_blocked.3tecla		\
		gl_change_terminal.3tecla	\
		gl_clear_history.3tecla		\
		gl_completion_action.3tecla	\
		gl_configure_getline.3tecla	\
		gl_customize_completion.3tecla	\
		gl_display_text.3tecla		\
		gl_echo_mode.3tecla		\
		gl_erase_terminal.3tecla	\
		gl_error_message.3tecla		\
		gl_group_history.3tecla		\
		gl_handle_signal.3tecla		\
		gl_ignore_signal.3tecla		\
		gl_inactivity_timeout.3tecla	\
		gl_last_signal.3tecla		\
		gl_limit_history.3tecla		\
		gl_list_signals.3tecla		\
		gl_load_history.3tecla		\
		gl_lookup_history.3tecla	\
		gl_normal_io.3tecla		\
		gl_pending_io.3tecla		\
		gl_prompt_style.3tecla		\
		gl_query_char.3tecla		\
		gl_range_of_history.3tecla	\
		gl_raw_io.3tecla		\
		gl_read_char.3tecla		\
		gl_register_action.3tecla	\
		gl_replace_prompt.3tecla	\
		gl_resize_history.3tecla	\
		gl_return_status.3tecla		\
		gl_save_history.3tecla		\
		gl_set_term_size.3tecla		\
		gl_show_history.3tecla		\
		gl_size_of_history.3tecla	\
		gl_state_of_history.3tecla	\
		gl_terminal_size.3tecla		\
		gl_toggle_history.3tecla	\
		gl_trap_signal.3tecla		\
		gl_tty_signals.3tecla		\
		gl_watch_fd.3tecla		\
		new_CplFileConf.3tecla		\
		new_ExpandFile.3tecla		\
		new_GetLine.3tecla		\
		new_PathCache.3tecla		\
		new_PcaPathConf.3tecla		\
		new_WordCompletion.3tecla	\
		pca_last_error.3tecla		\
		pca_path_completions.3tecla	\
		pca_scan_path.3tecla		\
		pca_set_check_fn.3tecla		\
		ppc_file_start.3tecla		\
		ppc_literal_escapes.3tecla

cfc_file_start.3tecla		:= LINKSRC = cpl_complete_word.3tecla
cfc_literal_escapes.3tecla	:= LINKSRC = cpl_complete_word.3tecla
cfc_set_check_fn.3tecla		:= LINKSRC = cpl_complete_word.3tecla
cpl_add_completion.3tecla	:= LINKSRC = cpl_complete_word.3tecla
cpl_check_exe.3tecla		:= LINKSRC = cpl_complete_word.3tecla
cpl_file_completions.3tecla	:= LINKSRC = cpl_complete_word.3tecla
cpl_last_error.3tecla		:= LINKSRC = cpl_complete_word.3tecla
cpl_list_completions.3tecla	:= LINKSRC = cpl_complete_word.3tecla
cpl_recall_matches.3tecla	:= LINKSRC = cpl_complete_word.3tecla
cpl_record_error.3tecla		:= LINKSRC = cpl_complete_word.3tecla
del_CplFileConf.3tecla		:= LINKSRC = cpl_complete_word.3tecla
del_WordCompletion.3tecla	:= LINKSRC = cpl_complete_word.3tecla
new_CplFileConf.3tecla		:= LINKSRC = cpl_complete_word.3tecla
new_WordCompletion.3tecla	:= LINKSRC = cpl_complete_word.3tecla

del_ExpandFile.3tecla		:= LINKSRC = ef_expand_file.3tecla
ef_last_error.3tecla		:= LINKSRC = ef_expand_file.3tecla
ef_list_expansions.3tecla	:= LINKSRC = ef_expand_file.3tecla
new_ExpandFile.3tecla		:= LINKSRC = ef_expand_file.3tecla

del_GetLine.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_append_history.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_automatic_history.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_bind_keyseq.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_catch_blocked.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_change_terminal.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_clear_history.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_completion_action.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_configure_getline.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_customize_completion.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_display_text.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_echo_mode.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_erase_terminal.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_error_message.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_group_history.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_ignore_signal.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_inactivity_timeout.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_last_signal.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_limit_history.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_list_signals.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_load_history.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_lookup_history.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_prompt_style.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_query_char.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_range_of_history.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_read_char.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_register_action.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_replace_prompt.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_resize_history.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_return_status.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_save_history.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_set_term_size.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_show_history.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_size_of_history.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_state_of_history.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_terminal_size.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_toggle_history.3tecla	:= LINKSRC = gl_get_line.3tecla
gl_trap_signal.3tecla		:= LINKSRC = gl_get_line.3tecla
gl_watch_fd.3tecla		:= LINKSRC = gl_get_line.3tecla
new_GetLine.3tecla		:= LINKSRC = gl_get_line.3tecla

gl_abandon_line.3tecla		:= LINKSRC = gl_io_mode.3tecla
gl_handle_signal.3tecla		:= LINKSRC = gl_io_mode.3tecla
gl_normal_io.3tecla		:= LINKSRC = gl_io_mode.3tecla
gl_pending_io.3tecla		:= LINKSRC = gl_io_mode.3tecla
gl_raw_io.3tecla		:= LINKSRC = gl_io_mode.3tecla
gl_tty_signals.3tecla		:= LINKSRC = gl_io_mode.3tecla

del_PathCache.3tecla		:= LINKSRC = pca_lookup_file.3tecla
del_PcaPathConf.3tecla		:= LINKSRC = pca_lookup_file.3tecla
new_PathCache.3tecla		:= LINKSRC = pca_lookup_file.3tecla
new_PcaPathConf.3tecla		:= LINKSRC = pca_lookup_file.3tecla
pca_last_error.3tecla		:= LINKSRC = pca_lookup_file.3tecla
pca_path_completions.3tecla	:= LINKSRC = pca_lookup_file.3tecla
pca_scan_path.3tecla		:= LINKSRC = pca_lookup_file.3tecla
pca_set_check_fn.3tecla		:= LINKSRC = pca_lookup_file.3tecla
ppc_file_start.3tecla		:= LINKSRC = pca_lookup_file.3tecla
ppc_literal_escapes.3tecla	:= LINKSRC = pca_lookup_file.3tecla

.KEEP_STATE:

include		$(SRC)/man/Makefile.man

install:	$(ROOTMANFILES) $(ROOTMANLINKS)
